﻿using JumpstartApp.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace JumpstartApp.Models
{
    using JumpstartApp.Helpers;

    public abstract class ChildBase : BindableBase
    {
        [XmlAttribute("Id")]
        public string Id { get; set; }

        [XmlElement("Link")]
        public string Link { get; set; }

        [XmlElement("Image")]
        public string Image { get; set; }

        [XmlElement("Video")]
        public string Video { get; set; }

        [XmlElement("Title")]
        public string Title { get; set; }

        [XmlElement("Description")]
        public string Description { get; set; }

        public int Index { get; set; }
        public int ColSpan { get; set; }
        public int RowSpan { get; set; }

        public override string ToString()
        {
            return string.Format("{0} {1}x{2}", Id ?? "None", ColSpan, RowSpan);
        }

        public abstract ChildBase Clone();
    }
}
